//
//  ChapterCollectionViewCell.m
//  A段项目,漫画
//
//  Created by dllo on 15/4/23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ChapterCollectionViewCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation ChapterCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.chapterButton = [UIButton buttonWithType:UIButtonTypeSystem];
        [self.contentView addSubview:self.chapterButton];
        [self.chapterButton release];
        self.chapterButton.frame = CGRectMake(0, 0, WIDTH, HEIGHT);
        self.chapterButton.layer.borderWidth = 1;
        self.chapterButton.layer.cornerRadius = 5;
//        [self.chapterButton addTarget:self action:@selector(action) forControlEvents:UIControlEventTouchUpInside];
        self.chapterButton.userInteractionEnabled = NO;
    }
    return self;
}

//- (void)action{
//    NSLog(@"%@",self.chapterButton.titleLabel.text);
//}

-(void)layoutSubviews{
    [super layoutSubviews];
}

@end
